class Calculator:
    def add(self, *args):
        result = 0
        
        for n in args:
            result += n
        
        return result

    def squared(self, num):
        return num ** 2